import request from '@/utils/request'

// 获取楼宇列表
export function getBuilding(params) {
  return request({
    url: '/park/building',
    params
  })
}

// 楼宇新增
export function addBuilding(data) {
  return request({
    method: 'post',
    url: '/park/building',
    data
  })
}
// 获取楼宇详情
export function getBuildingId(id) {
  return request({
    url: `/park/building/${id}`
  })
}
// 修改楼宇详情
export function updataBuilding(data) {
  return request({
    method: 'put',
    url: '/park/building',
    data
  })
}
// 删除楼宇
export function delBuilding(id) {
  return request({
    method: 'delete',
    url: `/park/building/${id}`

  })
}
